package main

import (
	"fmt"
	"net/http"
)

func main() {
	http.HandleFunc("/", SayhelloName)
	http.ListenAndServe(":8080", nil)
}

func SayhelloName(w http.ResponseWriter, r *http.Request) {
	fmt.Fprint(w, "原生HTTP路由测试页面")
}

/*
package main

import (
	"fmt"
	"log"
	"net/http"
)

func main() {
	http.HandleFunc("/", SayhelloName)
	log.Fatal(http.ListenAndServe(":8080", nil))
	//http.ListenAndServe(":8080", nil)
}

func SayhelloName(w http.ResponseWriter, r *http.Request) {
	fmt.Fprint(w, "原生HTTP路由测试页面")
}
*/
